package com.aizhixin.lab.project.course.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.cache.annotation.Cacheable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;


@Entity(name="c_exercises_stu_code")
@Cacheable
public class ExerciseStuCode {

	@Id
	@Column(name = "id")
	@Getter
	@Setter
	protected String id;

	/**
	 * 发布任务后的题目ID
	 */
	@Column(name = "exercises_question_id")
	@Getter @Setter
	private String exercisesQuestionId;

	/**
	 * 学生ID
	 */
	@Column(name = "stu_id")
	@Getter @Setter
	private String stuId;
	
	/**
	 * 提交代码
	 */
	@Column(name = "submit_code")
	@Getter @Setter
	private String submitCode;

	/**
	 * 代码行数
	 */
	@Column(name = "code_row_num")
	@Getter @Setter
	private Integer codeRowNum;
	/**
	 * 分数
	 */
	@Column(name = "score")
	@Getter @Setter
	private Integer score;
	
	/**
	 * 提交时间
	 */
	@Column(name = "submitTime")
	@Getter @Setter
	private Date submitTime;

	/**
	 * 提交状态
	 */
	@Column(name = "task_status")
	@Getter @Setter
	private String taskStatus;

	/**
	 * 语言
	 */
	@Column(name = "language")
	@Getter @Setter
	private String language;
	/**
	 * 运行结果
	 */
	@Column(name = "run_result")
	@Getter @Setter
	private String runResult;

	/**
	 * 结果是否正常（0正常1异常）
	 */
	@Column(name = "is_error")
	@Getter @Setter
	private Integer isError;
}
